<!-- author: aarendsen (alef@jteam.nl) -->
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="../styles.css"/>
	</head>
	<body>
		<h2><code>spring:message</code></h2>
		<h3>org.springframework.web.servlet.tags.MessageTag</h3>
		<hr>
		<p>
		</p>
		<p>
			<table class="tag" width="100%">
				<tr>
					<td class="tagname"><b><code>spring:message (since 1.0)</code></b></td>
				</tr>
				<tr>
					<td class="tagsection"><b>General information</b></td>
				<tr>
				<tr>
					<td colspan="2">
						The <code>spring:message</code> tag provides you with internationalization
						support using Spring's <code>MessageSource</code> concept. The MessageSource
						is an interface providing functionality for retrieving messages. It closely
						resembles JSTL's <code>fmt:message</code>-tag, however, the MessageSource
						classes can be integrated with the Spring context. Also, the <code>spring:message</code>-
						tag, works with the locale support that comes with Spring.
					</td>
				</tr>
				<tr>
					<td class="tagsection"><b>Attributes</b></td>
				<tr>
				<tr>
					<td class="tagheader"><b>code</b></td>
				</tr>
					<td>The code (key) to use when looking up the message. If code is not
						provided, the text attribute will be used.
					</td>
				</tr>
				<tr>
					<td>required: no</td>
				</tr>
				<tr>
					<td>el-support: yes</td>
				</tr>
				<tr class="tagheader">
					<td class="tagheader"><b>text</b></td>
				</tr>
				<tr>
					<td>Default text to output when a message for the given code could
						not be found. If both text and code are not set, the 
						tag will output <code>null</code>
					</tr>
				</tr>					
				<tr>
					<td>required: no</td>
				</tr>
				<tr>
					<td>el-support: yes</tD>
				</tr>
				
				<tr>
					<td class="tagheader"><b>var</b></td>
				</tr>
				<tr>
					<td>The string to use when binding the result to the page,
						request, session or application scope. If not specified,
						the result gets outputted to the writer (directly to the JSP i.e.).
					</td>
				</tr>
				<tr>
					<td>required: no</td>
				</tr>
				<tr>
					<td>el-support: yes</tD>
				</tr>
				<tr>
					<td class="tagheader"><b>scope</b></td>
				</tr>
				<tr>
					<td>The scope to use when exported the result to a variable.
						This attribute is only used when <code>var</code> is also set.
						Possible values are <code>page</code>, <code>request</code>, 
						<code>session</code> and <code>application</code>
					</td>
				</tr>						
				<tr>
					<td>required: no</td>
				</tr>
				<tr>
					<td>el-support: yes</tD>
				</tr>

				<tr>
					<td class="tagsection"><b>Variables</b></td>
				</tr>
				<tr>
					<td>none</td>
				</tr>
				<tr>
					<td class="tagsection"><b>Also have a look at</b></td>
				<tr>
				<tr>
					<td>the <a href="../../api/org/springframework/context/support/ResourceBundleMessageSource.html"><code>ResourceBundleMessageSource</code></a>
					to see how resource bundles can be used in conjunction with the <code>spring:message</code>-tag</td>
				</tr>
				<tr>
					<td>the <a href="../../api/org/springframework/context/MessageSource.html"><code>MessageSource</code></a>
					to see how you can implement your own message sources</td>
				</tr>
			</table>
		</p>
			
	</body>
</html>